package com.xhcl.system.model;


import java.math.BigDecimal;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map.Entry;

public class ChangeHorizontal
{
  private String dwbm;
  private String dwmc;
  private LinkedHashMap<String, BigDecimal> map = new LinkedHashMap();

  public String getDwbm() {
    return this.dwbm;
  }

  public void setDwbm(String dwbm) {
    this.dwbm = dwbm;
  }

  public String getDwmc() {
    return this.dwmc;
  }

  public void setDwmc(String dwmc) {
    this.dwmc = dwmc;
  }

  public LinkedHashMap<String, BigDecimal> getMap() {
    return this.map;
  }

  public void setMap(LinkedHashMap<String, BigDecimal> map) {
    if ((map == null) || (map.isEmpty())) {
      return;
    }
    Iterator it = map.entrySet().iterator();
    while (it.hasNext()) {
	  Entry<String, BigDecimal> entry = (Entry<String, BigDecimal>) it.next();
	  String key = entry.getKey();
	  this.map.put(key,entry.getValue()==null?new BigDecimal("0"):entry.getValue());
    }
  }
}